package com.rural.bus.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ImageView;
import android.widget.LinearLayout;

public class PlusImageView extends LinearLayout {
	private ImageView iv;

	public PlusImageView(Context context, AttributeSet attrs) {
		super(context, attrs);
		setPadding(15, 0, 15, 0);
		iv=new ImageView(context);
		addView(iv);
		
	}
	
	@Override
	public void setBackgroundResource(int resid){
		iv.setImageResource(resid);
		
//		bt.measure(0, 0);
//        setMeasuredDimension(bt.getMeasuredWidth()+20, bt.getMeasuredHeight()+20);
	}

}
